import request from '@/utils/request.js'
// 增
export function addUser(data) {
  return request.post('/data/ed/user/createUser', data)
}
// 改
export function editUser(data) {
  return request.put('/data/ed/user/updateUser', data)
}
// 发布
export function publishUser(data) {
  return request.post('/data/ed/user/publish', data)
}
// 删
export function deleteUser(data) {
  return request.post('/data/ed/user/deleteUser', data)
}

// 查
export function userList(data) {
  return request.post('/data/ed/user/list', data)
}
// 查单个
export function getUser(userId) {
  return request.get('/data/ed/user/getInfo/' + userId)
}
// 	校验用户信息 (用户id唯一)
export function checkUser(data) {
  return request.post('/data/ed/user/validateWorkNumber', data)
}
